package com.bookmall.member.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bookmall.common.entity.MyPageEntity;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 会员收藏对象 member_like_books
 *
 * @author 胡菜鸡
 * @date 2022-04-01
 */
@Data
@ToString
@TableName("member_like_books")
public class MemberLikeBooks extends MyPageEntity
{
    private static final long serialVersionUID = 1L;

    /** id（用户收藏商品表） */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /** 收藏者id */
    private String memberId;
    @Excel(name = "收藏者")
    @TableField(exist = false)
    private String memberName;

    /** 图书id */
//    @Excel(name = "图书id")
    private String bookId;

    /** 书籍名称 */
    @Excel(name = "书籍名称")
    private String bookName;

    /** 发布此图书的会员id */
    private String publishMemberId;
    @Excel(name = "发布此图书的会员")
    @TableField(exist = false)
    private String publishMemberName;

    /** 查看此收藏的权限（0所有人，1仅自己） */
    @Excel(name = "查看此收藏的权限", readConverterExp = "0=所有人，1=仅自己")
    private Integer display;
}
